package com.ydm.fire_fighting_web.modules.ucenter.service;
import com.ydm.fire_fighting_web.entity.ucenter.Result;
import com.ydm.fire_fighting_web.entity.ucenter.UserInfo;
import org.springframework.transaction.annotation.Transactional;

public interface UserService {
    /**
     * 注册
     * @param userInfo 参数封装
     * @return Result
     */
    @Transactional
    public Result regist(UserInfo userInfo);
    /**
     * 登录
     * @param userInfo 用户名和密码
     * @return Result
     */
    public Result login(UserInfo userInfo);

}
